package top.huxy.boot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.huxy.boot.model.dto.DTO_ADDArticle;
import top.huxy.boot.model.dto.DTO_UpdateArticle;
import top.huxy.boot.model.vo.user.VO_Article;

import java.util.List;

/**
 * @author HuXY
 * @since 2021-12-21 09:59:01
 */
@Mapper
@Repository
public interface ArticleMapper {

    List<VO_Article> getArticleList(String type);

    int addArticle(DTO_ADDArticle article);

    Integer getArticleIdByCreateTime(long now);

    VO_Article getArticleById(Integer id);

    int updateArticle(DTO_UpdateArticle article);
}
